#!/bin/bash
# install docker 
wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo -O /etc/yum.repos.d/docker-ce.repo
yum -y install docker-ce-18.06.1.ce-3.el7
systemctl enable docker
systemctl start docker
# seted mirror
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://qsumw1up.mirror.aliyuncs.com"]
}
EOF
systemctl daemon-reload
systemctl restart docker
# install minikube 
curl -Lo minikube http://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v0.25.2/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
minikube start --vm-driver=none --registry-mirror=https://registry.docker-cn.com
wget -O /usr/bin/kubectl mill1983.oss-cn-shenzhen-internal.aliyuncs.com/k8s/kubectl
chmod +x /usr/bin/kubectl
